package com.drools.bean;

import com.drools.bean.Person;

rule "${rule_name1}"
    salience 1
    when
        $p : Person(age > ${age1});
    then
        $p.setDesc("${desc1}");
        retract($p);
    end

rule "${rule_name2}"
    salience 2
    when
        $p : Person(age > ${age2});
    then
        $p.setDesc("${desc2}");
        retract($p);
    end

rule "${rule_name3}"
    salience 3
    when
        $p : Person(age > ${age3});
    then
        $p.setDesc("${desc3}");
        retract($p);
    end

rule "${rule_name4}"
    salience 4
    when
        $p : Person(age > ${age4});
    then
        $p.setDesc("${desc4}");
        retract($p);
    end